<?php
/**
 * $Id: instance.php 12 2010-11-28 20:02:53Z LEON $
 * $Author: LEON $
 * $LastChangedDate: 2010-11-28 20:02:53 +0000 (Sun, 28 Nov 2010) $
 * $Revision: 12 $
 */
namespace cmFly\controller\system\config;
class instance extends \ArrayIterator {
    protected $handler;
    protected $config_name;
    public function __construct($handler,$config_name,$config_args) {
	parent::__construct($config_args);
	$this->handler=$handler;
	$this->config_name=$config_name;
    }
    public function __get($var) {
	return $this->offsetGet($var);
    }
    public function __set($var,$val) {
	$this->offsetSet($var,$val);
    }
    public function get_config_name() {
	return $this->config_name;
    }
    public function save() {
	return $this->handler->save($this);
    }
}
?>